#include "cpu/exec/template-start.h"

#define instr test

static void do_execute(){
    DATA_TYPE d=op_src->val&op_dest->val;
    cpu.eflags.SF = d >> ((DATA_BYTE << 3) - 1);
    cpu.eflags.ZF = !d;
    cpu.eflags.CF = 0;
    cpu.eflags.OF = 0;
    d ^= d >> 4;
    d ^= d >> 2;
    d ^= d >> 1;
    d &= 1;
    cpu.eflags.PF = !d;
    print_asm_template2();
}

make_instr_helper(r2rm)

#include "cpu/exec/template-end.h"